package Command;

/**
 * @Author zhangjinxi
 * @Date: Created in 11:47 2018/3/1
 * @Description:
 */
public class MyCommand implements Command {

    private Receiver receiver;

    public MyCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exe() {
        receiver.action();
    }

}
